//安全区禁止开枪
player addEventHandler ["FiredMan", {
	_issafe = player getVariable "destiny_is_safe";
	if (_issafe) then {
		deleteVehicle (_this#6);
	};
}];

//3D文字图标显示 
 [] spawn {
	switch (worldName) do
	{
		case "Harvey": { 
			DESTINY_OBJ = [
				[[-1074.35,3446.11,1.5],"仓库",[1,1,1,1],"\a3\Ui_f\data\IGUI\Cfg\Actions\gear_ca.paa"],
				[[-1069.6,3451.91,1.5],"开始游戏",[0.157,1,0.157,1],"\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\attack_ca.paa"],
				[[-1053.71,3452.47,3.0],"跳蚤市场",[1,1,1,1],"\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\defend_ca.paa"]
			];
		};
		default { };
	};
	addMissionEventHandler ["Draw3D", {
			DESTINY_OBJ apply {
				_OBJ = _x;
				_dist =((player distance (_OBJ # 0)) / 20.0) toFixed 2; 
				_dist = parseNumber _dist;
				_color =  _OBJ # 2;
				if (_dist > 1) then {_dist = 1}; 
				if (_dist < 0) then {_dist = 0}; 
				_color set [3, 1 - _dist]; 
				drawIcon3D [ 
						_OBJ # 3, 
						_color, 
						[ 
						(_OBJ # 0) # 0, 
						(_OBJ # 0) # 1, 
						(_OBJ # 0) # 2
						], 
						1.7, 	
						1.7, 
						0, 
						_OBJ # 1, 
						2, 
						0.08, 
						'PuristaMedium', 
						"center", 
						true 
					];
			};

	}]

 };